package com.itheima.manager;

import com.itheima.service.db.SmsCouponHistoryService;
import com.itheima.util.R;
import com.itheima.vo.PageBeanVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

@Component
public class SmsCouponHistoryManager {

    @DubboReference
    SmsCouponHistoryService smsCouponHistoryService;

    public R findByPage(Integer pageNum, Integer pageSize, Long couponId,String orderSn,Integer useStatus) {
        PageBeanVo pageBeanVo = smsCouponHistoryService.findByPage(pageNum,pageSize,couponId,orderSn,useStatus);
        return R.success(pageBeanVo);
    }
}
